<HTML>
<CENTER><A HREF = "http://sparta.sandia.gov">SPARTA WWW Site</A> - <A HREF = "Manual.html">SPARTA Documentation</A> - <A HREF = "Section_commands.html#comm">SPARTA Commands</A> 
</CENTER>






<HR>

<H3>units command 
</H3>
<P><B>Syntax:</B>
</P>
<PRE>units style 
</PRE>
<UL><LI>style = <I>cgs</I> or <I>si</I> 
</UL>
<P><B>Examples:</B>
</P>
<PRE>units cgs 
</PRE>
<P><B>Description:</B>
</P>
<P>This command sets the style of units used for a simulation.  It
determines the units of all quantities specified in the input script
and various input files read by SPARTA, as well as the units of all
quantities output to the screen, log file, dump files, and other
output files.  Typically, this command is used at the very beginning
of an input script.
</P>
<P>IMPORTANT NOTE: Internally, this command simply sets the numeric
values of conversion factors used by SPARTA, e.g. the Boltzmann
constant used to convert temperature to energy.  It is up to you to
insure that all input values used in the input script and other input
files (surface data, species files, reaction files) contain numeric
values consistent with the chosen units.
</P>
<P>For style <I>cgs</I>, these are the units:
</P>
<UL><LI>mass = grams
<LI>distance = centimeters
<LI>area = cm^2
<LI>volume = cm^3
<LI>time = seconds
<LI>energy = ergs
<LI>velocity = centimeters/second
<LI>acceleration = centimeters/second^2
<LI>pressure = barye (dyne/cm^2 = 0.1 pascals)
<LI>temperature = degrees K 
</UL>
<P>For style <I>si</I>, these are the units:
</P>
<UL><LI>mass = kilograms
<LI>distance = meters
<LI>area = m^2
<LI>volume = m^3
<LI>time = seconds
<LI>energy = Joules
<LI>velocity = meters/second
<LI>acceleration = meters/second^2
<LI>pressure = pascals (newton/meter^2)
<LI>temperature = degrees K 
</UL>
<P>The units command also sets a default timestep size; see the
<A HREF = "timestep.html">timestep</A> command to change this value.
</P>
<UL><LI>For style <I>cgs</I> this is dt = 1.0 sec.
<LI>For style <I>si</I> this is dt = 1.0 sec. 
</UL>
<P><B>Restrictions:</B>
</P>
<P>This command must be used before the simulation box is defined by a
<A HREF = "create_box.html">create_box</A> command.
</P>
<P><B>Related commands:</B> none
</P>
<P><B>Default:</B>
</P>
<PRE>units si 
</PRE>
</HTML>
